﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using DokuzEylul.Sinav.Utility_Master;

namespace DokuzEylul.Sinav
{
    public partial class Main : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            pnlmenu.Controls.Add(GetMenu);
        }

        public TreeView GetMenu
        {
            get
            {
                TreeView _result = Session["tree_menu"] as TreeView;
                if (_result == null)
                    Session["tree_menu"] = _result = MenuUtilities.Instance.RenderMenu();
                return _result;
            }
        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Login.aspx");
        }

    }
}
